﻿package com.wandian.model
{
	import com.wandian.ApplicationFacade;
	import com.wandian.controller.CLZNoticeName;
	import com.wandian.data.GameData;
	import com.wandian.model.http.UserData;
	import com.wandian.model.socket.ServerPacketProxy;
	import com.wandian.model.socket.net.Command;
	import com.wandian.model.vo.*;

	import org.puremvc.as3.patterns.proxy.Proxy;
	/**   
	* @author long
	* @QQ 108232706
	* @version 1.0   
	*/   
	public class ShopProxy extends Proxy
	{
		public static const NAME:String="ShopProxy";
		private var _serverPoxy:ServerPacketProxy;
		private var _arrFaceVo:Array;
		private var _global:GameData;

		public function ShopProxy(data:Object=null)
		{
			super(NAME, data);
			this._global=GameData.getInstance();
			_arrFaceVo=[];
			return;
		}

		override public function onRegister():void
		{
			trace("RoomInfoProxy onRegister");
			this._serverPoxy=facade.retrieveProxy(ServerPacketProxy.NAME) as ServerPacketProxy;
		}

		private function requestFaceVos():void
		{
			this._serverPoxy.writeBegin(Command.CMD_GameRoomCmd);
			this._serverPoxy.writeByte(104);
			this._serverPoxy.writeEnd();
			this._serverPoxy.sendCmd();
		}

		public function requestHotPropList():void
		{
			var _loc_1:*=GameData.getPcateProp(1);
			this.sendNotification(CLZNoticeName.SHOP_HOT_PROP_LIST_RES, _loc_1);
			return;
		}

		public function requestInteractivePropList():void
		{
			var _loc_1:*=GameData.getPcateProp(2);
			this.sendNotification(CLZNoticeName.SHOP_INTERACTIVE_PROP_LIST_RES, _loc_1);
			return;
		}

		public function requestGiftList(param1:int):void
		{
			var _loc_2:*=GameData.getPcateProp(param1);
			this.sendNotification(CLZNoticeName.SHOP_GIFT_LIST_RES, _loc_2);
			return;
		}

		public function requestVipList():void
		{
			this.sendNotification(CLZNoticeName.SHOP_VIP_LIST_RES, [1, 2, 3, 4, 5, 6, 7]);
			return;
		}

	}
}
